//app.js
import getFlatternDistance from 'distance.js'
import data from 'data'
App({
  // 声明全局对象
  globalData: {
    data: data.data,
    idx: 0,
    nearest: {},
    location: {
      latitude: 0,
      longitude: 0
    }
  }
})